package com.spic.business.mq.utils;


//import com.rabbitmq.client.Connection;
//import com.rabbitmq.client.ConnectionFactory;

/**
 * @author 290512
 * @create 2022-05-13 15:45
 * 测试类
 */
public class ConnextionUtil
{
//    public static Connection getConnection()throws Exception{
//        // 创建连接工厂
//        ConnectionFactory factory = new ConnectionFactory();
//        factory.setHost("192.168.164.130");
//        factory.setPort(5672);
//        factory.setUsername("root");
//        factory.setPassword("root");
//        factory.setVirtualHost("/");
//        return factory.newConnection();
//    }
}
